<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.storage.Bag.addBagObserver</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d9/d37/classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a73a559e1b77e6bc3a7db686816accef2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d9/d37/classnars_1_1storage_1_1Bag.html">nars.storage.Bag</a>&lt; Type extends <a class="el" href="../../d1/dd1/classnars_1_1entity_1_1Item.html">Item</a> &gt;.addBagObserver </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../df/d32/interfacenars_1_1storage_1_1BagObserver.html">BagObserver</a>&#160;</td>
          <td class="paramname"><em>bagObserver</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>title</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>To start displaying the <a class="el" href="../../d9/d37/classnars_1_1storage_1_1Bag.html" title="A Bag is a storage with a constant capacity and maintains an internal priority distribution for retri...">Bag</a> in a BagWindow. </p>
<p>TODO startPlay should be renamed <a class="el" href="../../d9/d37/classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2.html#a73a559e1b77e6bc3a7db686816accef2" title="To start displaying the Bag in a BagWindow. ">addBagObserver( BagObserver bagObserver, String title)</a> and BagWindow will implement new interface <a class="el" href="../../df/d32/interfacenars_1_1storage_1_1BagObserver.html">BagObserver</a>; </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bagObserver</td><td>TODO </td></tr>
    <tr><td class="paramname">title</td><td>The title of the window </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../d6/dce/Bag_8java_source.html#l00303">303</a> of file <a class="el" href="../../d6/dce/Bag_8java_source.html">Bag.java</a>.</p>

<p>Referenced by <a class="el" href="../../db/d0c/Memory_8java_source.html#l00437">nars.storage.Memory.conceptsStartPlay()</a>, <a class="el" href="../../df/d62/Concept_8java_source.html#l00443">nars.entity.Concept.startPlay()</a>, and <a class="el" href="../../db/d0c/Memory_8java_source.html#l00449">nars.storage.Memory.taskBuffersStartPlay()</a>.</p>
<div class="fragment"><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                                                                      {</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        this.<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a8fe67894f51948b0e93f16226822e638.html#a8fe67894f51948b0e93f16226822e638">bagObserver</a> = <a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a8fe67894f51948b0e93f16226822e638.html#a8fe67894f51948b0e93f16226822e638">bagObserver</a>;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a8fe67894f51948b0e93f16226822e638.html#a8fe67894f51948b0e93f16226822e638">bagObserver</a>.<a class="code" href="../../df/d32/interfacenars_1_1storage_1_1BagObserver_a47cd6e934d34485e07b1f1d793d43eee.html#a47cd6e934d34485e07b1f1d793d43eee">post</a>(<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a4106abcc906c5ae1ce6828b0a88a1cca.html#a4106abcc906c5ae1ce6828b0a88a1cca">toString</a>());</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        <a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a8fe67894f51948b0e93f16226822e638.html#a8fe67894f51948b0e93f16226822e638">bagObserver</a>.<a class="code" href="../../df/d32/interfacenars_1_1storage_1_1BagObserver_a11b5571052cf899abfac1e8930af0c4c.html#a11b5571052cf899abfac1e8930af0c4c">setTitle</a>(title);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="comment">//        window = new BagWindow(this, title);</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="comment">//        showing = true;</span></div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;<span class="comment">//        window.post(toString());</span></div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a4106abcc906c5ae1ce6828b0a88a1cca_html_a4106abcc906c5ae1ce6828b0a88a1cca"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a4106abcc906c5ae1ce6828b0a88a1cca.html#a4106abcc906c5ae1ce6828b0a88a1cca">nars.storage.Bag.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdoc">Collect Bag content into a String for display. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00343">Bag.java:343</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a8fe67894f51948b0e93f16226822e638_html_a8fe67894f51948b0e93f16226822e638"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a8fe67894f51948b0e93f16226822e638.html#a8fe67894f51948b0e93f16226822e638">nars.storage.Bag.bagObserver</a></div><div class="ttdeci">BagObserver bagObserver</div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00076">Bag.java:76</a></div></div>
<div class="ttc" id="interfacenars_1_1storage_1_1BagObserver_a47cd6e934d34485e07b1f1d793d43eee_html_a47cd6e934d34485e07b1f1d793d43eee"><div class="ttname"><a href="../../df/d32/interfacenars_1_1storage_1_1BagObserver_a47cd6e934d34485e07b1f1d793d43eee.html#a47cd6e934d34485e07b1f1d793d43eee">nars.storage.BagObserver.post</a></div><div class="ttdeci">void post(String str)</div><div class="ttdoc">Post the bag content. </div></div>
<div class="ttc" id="interfacenars_1_1storage_1_1BagObserver_a11b5571052cf899abfac1e8930af0c4c_html_a11b5571052cf899abfac1e8930af0c4c"><div class="ttname"><a href="../../df/d32/interfacenars_1_1storage_1_1BagObserver_a11b5571052cf899abfac1e8930af0c4c.html#a11b5571052cf899abfac1e8930af0c4c">nars.storage.BagObserver.setTitle</a></div><div class="ttdeci">void setTitle(String title)</div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d9/d37/classnars_1_1storage_1_1Bag_a73a559e1b77e6bc3a7db686816accef2_a73a559e1b77e6bc3a7db686816accef2_icgraph.svg" width="484" height="170"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../de/ddc/namespacenars_1_1storage.html">storage</a></li><li class="navelem"><a class="el" href="../../d9/d37/classnars_1_1storage_1_1Bag.html">Bag</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:59 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
